package edu.kpi.pzks2.graph;

import java.io.Serializable;

public class Node implements Serializable, HasWeight {
    private static final long serialVersionUID = -3807751466856585096L;
    
    private int id;
    private int weight;
    private int visualOrderNumber;
    
    public Node(int id ) {
        this.id = id;
        this.visualOrderNumber = id;
    }
    
    @Override
    public String toString() {
//        return "Node" + id + "  #" + visualOrderNumber;
        return id + "";
    }

    public int getId() {
        return id;
    }
    
    public int getWeight() {
        return weight;
    }

    public void setWeight(int w) {
        this.weight = w;
    }
    
    public int getVisualOrderNumber() {
        return visualOrderNumber;
    }
    
    public void setVisualOrderNumber(int visualOrderNumber) {
        this.visualOrderNumber = visualOrderNumber;
    }
}
